package com.ruoyi.pms.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品属性值对象 pms_attr_val
 * 
 * @author yf
 * @date 2022-02-20
 */
public class PmsAttrVal extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 最后更新人 */
    @Excel(name = "最后更新人")
    private Long modifyBy;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modifyTime;

    /** 属性值 */
    @Excel(name = "属性值")
    private String attrVal;

    /** 属性id */
    @Excel(name = "属性id")
    private Long idAttrKey;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setModifyBy(Long modifyBy) 
    {
        this.modifyBy = modifyBy;
    }

    public Long getModifyBy() 
    {
        return modifyBy;
    }
    public void setModifyTime(Date modifyTime) 
    {
        this.modifyTime = modifyTime;
    }

    public Date getModifyTime() 
    {
        return modifyTime;
    }
    public void setAttrVal(String attrVal) 
    {
        this.attrVal = attrVal;
    }

    public String getAttrVal() 
    {
        return attrVal;
    }
    public void setIdAttrKey(Long idAttrKey) 
    {
        this.idAttrKey = idAttrKey;
    }

    public Long getIdAttrKey() 
    {
        return idAttrKey;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("modifyBy", getModifyBy())
            .append("modifyTime", getModifyTime())
            .append("attrVal", getAttrVal())
            .append("idAttrKey", getIdAttrKey())
            .toString();
    }
}
